package com.think.common.param;

import com.think.common.convert.Convert;
import com.think.common.enums.StateEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * <p>
 * 批量更新状态
 * </p>
 *
 * @author: xwj
 * @data: 2019-04-10
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class UpdateBatchParam extends Convert {

    private static final long serialVersionUID = 1L;

    /**
     * 关键字集合
     */
    @NotEmpty(groups = Update.class, message = "批量操作关键字id不能为空")
    private List<String> idList;

    /**
     * 状态：0.启用，1.禁用
     */
    @NotNull(groups = Update.class, message = "状态不能为空")
    private StateEnum state;

    public interface Update {}
}
